package com.haoshuang.zhouzhoubang.ui.adapter

import com.chad.library.adapter4.BaseQuickAdapter
import com.haoshuang.zhouzhoubang.R
import com.haoshuang.zhouzhoubang.databinding.ItemYdBinding
import com.haoshuang.zhouzhoubang.model.bean.ImageBean9
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter


class YdAdapter(data: MutableList<ImageBean9>) :
    BaseBindingQuickAdapter<ImageBean9, ItemYdBinding>(data) {

    override fun onBindViewHolder(holder: BaseBindingHolder, position: Int, item: ImageBean9?) {
        if (item == null) return
        val binding = ItemYdBinding.bind(holder.itemView)
        binding.apply {
            if (item.isCheck==0) {
                ivIamge.setImageResource(R.drawable.bg_round69)
            } else {
                ivIamge.setImageResource(R.drawable.bg_round6)
            }

        }
    }

}